#include "pushtextbuttonitem.h"
#include <QPainter>

static const QImage null(":/gfx/png/null_image.png");
static const QPointF neutralPos(-61., 25.);

PushTextButtonItem::PushTextButtonItem(const QString &text, const QString &file, QGraphicsItem *parentItem) :
    PushButtonItem(file, parentItem),
    text(text)
{
}

void PushTextButtonItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    PushButtonItem::paint(painter, option, widget);
    painter->setPen(Qt::white);
    painter->rotate(-80.);
    painter->drawText(neutralPos, text);
}

//QRectF PushTextButtonItem::boundingRect() const
//{
//    return PushButtonItem::boundingRect();
//}
